/*!
    \file    main.c
    \brief   GD32F4xx Temp Project

    \version 2023-11-22 v1
*/

#include "led.h"
#include "com.h"


#include "gd32f4xx.h"
#include "systick.h"

#include "delay.h"

void bsp_i2c_init(void);

int main(void)
{
    systick_config();

    delay_timer_init();

    led_config();
    //com_init();

    delay_1ms(500);
    while(1)
    {
        board_led_toggle(LED_RED);
        delay_1ms(500);
    }
}

#include <stdio.h>
/* retarget the C library printf function to the USART */
int fputc(int ch, FILE *f)
{
    //usart_data_transmit(COM0, (uint8_t)ch);
    //while(RESET == usart_flag_get(COM0, USART_FLAG_TBE));
    return ch;
}
